#include "driverh.h"

#if UART2_EN > 0

#ifndef __uart2_h_
#define __uart2_h_

#ifdef   __cplusplus
extern   "C"   {
#endif

INT8U Uart2Init(INT32U bps, INT16U party);
void Uart2SetBaud(INT32U bps, INT16U party);
INT8U Uart2ReceiveNByte(INT8U *p, INT16U n);
INT8U Uart2SendNByte(INT8U *p, INT16U n);
INT8U Uart2SendStr(INT8 *str);
INT8U WaitUart2SendEnd(void);
void Uart2QueueFlushSendBuf(void);
void Uart2QueueFlushReceiveBuf(void);
void Uart2Empty(void);

#ifdef   __cplusplus
}
#endif

#endif

#endif //UART2_EN>0
